{% comment %}
<!--
  Copyright (C) 2008 ZHENG Zhong <http://www.zhengzhong.net/>
  
  Created on 2009-05-06.
  $Id$
-->
{% endcomment %}

{% if movies %}

  <div class="movie_list">

    <table>
      <tbody>
        {% for movie in movies %}
          <tr>
            <td style="width:1%;">
              <div class="poster">
                {% if movie.has_poster %}
                  <img src="{{webapp_}}/movie/{{movie.key.id}}/poster/"
                       alt="{{movie.name|escape}}"
                       title="{{movie.name|escape}}"/>
                {% else %}
                  <img src="{{static_}}/images/movie_no_poster.jpg"
                       alt="{{movie.name|escape}} (no poster)"
                       title="{{movie.name|escape}} (no poster)"/>
                {% endif %}
              </div>
            </td>
            <td>
              <div class="title">
                <a href="{{webapp_}}/movie/{{movie.key.id}}/">{{movie.name|escape}}</a>
              </div><!--/.title-->
              <div class="description">
                {% if movie.description %}
                  {{movie.description|escape}}
                {% else %}
                  <span class="na">This movie does not have a description.</span>
                {% endif %}
              </div><!--/.description-->
              <div class="properties">
                <span>
                  <img src="{{static_}}/images/run_time_icon.gif" alt="Run time"/>
                  Run time: {{movie.run_time}} min
                </span>
                <span>
                  <img src="{{static_}}/images/hot_time_icon.gif" alt="Hot time"/>
                  Hot time: {{movie.hot_seconds}} sec in {{movie.hot_scenes}} scenes
                </span>
                <span>
                  <img src="{{static_}}/images/hot_ratio_icon.gif" alt="Hot ratio"/>
                  Hot ratio: {{movie.hot_ratio_per_mille}}&permil;
                </span>
                <span>
                  <img src="{{static_}}/images/imdb_icon.gif" alt="IMDb link"/>
                  IMDb link: <a href="http://www.imdb.com/title/{{movie.imdb_id}}/">{{movie.imdb_id}}</a>
                </span>
                <br/>
                <span>
                  <img src="{{static_}}/images/add_icon.gif" alt="Submitter"/>
                  Added on {{movie.submit_date|date:"Y-m-d"}} by
                  <a href="{{webapp_}}/user/{{movie.submitter.user_id}}/">
                    {{movie.submitter.nickname|escape}}
                  </a>
                </span>
              </div><!--/.properties-->
            </td>
          </tr>
        {% endfor %}
      </tbody>
    </table>

  </div><!--/.movie_list-->

{% endif %}



